﻿using System.Collections.Generic;
using System.Linq;
using KTOP.Core.Domain.Matrix;

namespace KTOP.Homeworks.Hw5.Logics.CrossMatrix
{
    public class Gsh
    {
        internal RMatrix RMatrix { get; set; }
       
        public List<List<int>> GshMatrix { get; set; }
        public Dictionary<Link, int> GshMap { get; set; }
        public int Pi { get; set; }

        public Gsh(RMatrix rMatrix)
        {
            RMatrix = rMatrix;

            GshMatrix = new List<List<int>>();
            GshMap = new Dictionary<Link, int>();
        }

        public void CreateGshMatrix(int size)
        {
            GshMatrix = Enumerable.Range(0, size)
                .Select(_ => new int[size].ToList())
                .ToList();
        }
    }

}
